
<?php

	//array of notices
	$notices=array(
		array("title"=>"如何对网店发表点评","url"=>"http://www.huakaili.com/help/?subpage=201"),	
		array("title"=>"E币有什么用？","url"=>"http://www.huakaili.com/help/?subpage=303"),		
		array("title"=>"如何获取贡献值和E币","url"=>"http://www.huakaili.com/help/?subpage=302"),
		array("title"=>"教你创建和编辑评单","url"=>"http://www.huakaili.com/help/?subpage=401"), 			
	);
	
	if($page_base=="index")
	{
?>
		<div class="bulletin">
     		 <div class="t strong">公告</div>
      		 <div class="m">
        	 <ul>
<?php
			 if($notices)
			 {
			 	$printN=1;
			 	foreach($notices as $notice)
			 	{
?>
					<li>
						<a href="<?php echo $notice['url'];?>">
<?php
						if($printN==1)
						{
?>
							<span class="redfont">
<?php
						} 
						echo $notice['title'];
						if($printN==1)
						{
							echo '</span>';
						}
?>
						</a>
					</li>
<?php
					if($printN>=5)
						break;
			 		$printN++;
			 	}
			 }
?>
       	 </ul>
<br />
<iframe width="100%" height="450" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=450&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1858955060&verifier=2a5b1a59&dpc=1"></iframe>

      </div>
      <div class="b"></div>
    </div>
<?php	
	}
	else
	if($page_base=="platform")
	{
?>
		<div class="call_board">
			<div class="call_board_title" style="margin: 28px 0 0 10px;">公告栏</div>
				<ul>
<?php
				if($notices) 
				{
					$printN=1;
					foreach($notices as $notice)
					{
?>
						<li><a href="<?php echo $notice['url'];?>">
							<?php echo $notice['title'];?>					
						</a></li>
<?php					
						if($printN>=3)
							break;
						$printN++;
					}
				}
?>
              </ul>
        </div>
<?php
	}
	else
	{
?>
		<div id="notice">
			<h4>公告板</h4>
				<div class="boxa">
<?php
				if($notices) 
				{
					$printN=1;
					foreach($notices as $notice)
					{
?>
						<a href="<?php echo $notice['url'];?>">
							<p>
								<?php echo $notice['title'];?>
							</p>
						</a>
						
<?php					
						if($printN>=3)
							break;
						$printN++;
					}
				}
?>
			    </div>


    		</div>
<?php
	}
?>

